package com.cctc.security.services;

import java.util.List;

import org.springframework.security.core.GrantedAuthority;

import com.cctc.security.domain.User;

public interface UserService<T extends User> {
	
	void addUser(T t);
	
	void delUser(T t);
	
	void updateUser(T t);

	User findUserById(String id);
	
	User getUserByName(String userName);
	
	List<GrantedAuthority> loadUserAuthoritiesByName(String userName);
	
}
